package org.csu.dao;

import org.csu.pojo.User;
import org.csu.pojo.UserQuery;

public interface UserDao {
    //查询登录用户的用户名密码是否存在
    public String login(User user);
    public String logout(User user);
    public Boolean checkLoginStatus(User user);
    public String register(User user, String confirmPassword);
    public String vertifyEmail(String token);
    public Boolean checkEmailExists(String email);
    public Integer getUserIdByLogin(User user);
    public void insertLoginLog(User user);
    public String getProfile(Integer userId);
    public Boolean updateProfile(User user);
    public Boolean changePassword(String request);
    public String uploadAvatar(String file);
    public Boolean verifyCurrentPassword(String password);
    public Boolean enableUser(Integer userId);
    public Boolean disableUser(Integer userId);
    public Boolean changeRole(Integer userId, String role);
    public Boolean generateDefaultPassword();
    public Boolean resetPassword(Integer userId);
    public String getUserList(UserQuery query, Integer pageNum);
}
